package com.yanmaohu.yulia.statement;

import com.yanmaohu.yulia.bean.DropBehavior;
import com.yanmaohu.yulia.bean.SpecificRoutineDesignator;

/**
 * @author Bright Lee
 */
public final class DropRoutineStatement implements SqlSchemaManipulationStatement {

    private int beginIndex;
    private int endIndex;
    private SpecificRoutineDesignator specificRoutineDesignator;
    private DropBehavior dropBehavior;

    public DropRoutineStatement(int beginIndex,
                                SpecificRoutineDesignator specificRoutineDesignator,
                                DropBehavior dropBehavior) {
        this.beginIndex = beginIndex;
        this.endIndex = dropBehavior.getEndIndex();
        this.specificRoutineDesignator = specificRoutineDesignator;
        this.dropBehavior = dropBehavior;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public SpecificRoutineDesignator getSpecificRoutineDesignator() {
        return specificRoutineDesignator;
    }

    public DropBehavior getDropBehavior() {
        return dropBehavior;
    }

}
